package xyz.zhzby.cyzx.oj.dto.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author zby
 * @date 2022/02/09
 */
@Data
@ApiModel("提交记录返回封装")
public class SubmissionResponse {


    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "类型（0测试 1评测）")
    private int type;

    @ApiModelProperty(value = "试题ID")
    private Long problemId;

    @ApiModelProperty(value = "试题名称")
    private String problemName;

    @ApiModelProperty(value = "提交者ID")
    private Long userId;

    @ApiModelProperty(value = "试题页面ID")
    private Long pageId;

    @ApiModelProperty(value = "所用语言名称")
    private String languageName;

    @ApiModelProperty(value = "提交时间")
    private Date submitTime;

    @ApiModelProperty(value = "开始运行时间")
    private Date executeTime;

    @ApiModelProperty(value = "评测运行总时间")
    private Integer usedTime;

    @ApiModelProperty(value = "评测运行占用最大内容")
    private Integer usedMemory;

    @ApiModelProperty(value = "结果")
    private String judgeResult;

    @ApiModelProperty(value = "分数")
    private Integer judgeScore;

    @ApiModelProperty(value = "日志")
    private String judgeLog;

    @ApiModelProperty(value = "提交的代码")
    private String code;

    @ApiModelProperty(value = "评测机名称")
    private String judgerName;

}
